<?php

namespace App\Models;


use App\Models\Admin\Level;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;

class AppUsers extends Authenticatable
{
    use  Notifiable;

    public $table = 'app_users';

    protected $hidden = ['password'];

    protected $fillable = [
        'name',
        'email',
        'password',
        'uuid',
        'api_token',
        'expires',
        'code',
        'start_time',
    ];

    public function level()
    {
        return $this->hasOne(Level::class, 'id', 'level_id');
    }
}
